function result = md5sum(str)
file_put_contents('md5temp', str);
[r, result] = system('md5sums -u md5temp');
assert(r == 0);
pos = strfind(result, ' ');
assert(pos == 33);
result = result(1:32);
delete('md5temp*');
